package es.goalproject.core.dominio;

public abstract class AbstractBase implements java.io.Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -783862567325072833L;

    public abstract Long getPrimaryKey();

    public abstract void setPrimaryKey(Long primaryKey);

    public String getPrimaryKeyString() {
        return String.valueOf(this.getPrimaryKey());
    }

    public void setPrimaryKeyString(String primaryKeyString) {
        if (primaryKeyString != null) {
            this.setPrimaryKey(Long.parseLong(primaryKeyString));
        }
    }

}
